import 'package:cunyutech_flutter_ui/cunyutech_flutter_ui.dart';

class CYApplicationStateTmpl extends StateTmpl {
  /// http代理地址
  String httpProxy;
  /// https代理地址
  String httpsProxy;
  /// 是否开启代理
  bool enableProxy = false;

  @override
  Map<String, dynamic> toJson() {
    return {
      "httpProxy": httpProxy,
      "httpsProxy": httpsProxy,
      "enableProxy": enableProxy,
    };
  }

  @override
  void fromJson(Map<String, dynamic> json) {
    httpProxy = json["httpProxy"];
    httpsProxy = json["httpsProxy"];
    enableProxy = json["enableProxy"];
  }
}